Filename | (eval 420)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
Statements | Executed 80 statements in 2.27ms |
Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 33µs | 46µs | BEGIN@65 | JSON::Schema::Modern::
2 | 2 | 2 | 31µs | 15.4ms | new | JSON::Schema::Modern::
1 | 1 | 1 | 10µs | 30µs | BEGIN@22.301 | JSON::Schema::Modern::
1 | 1 | 1 | 6µs | 30µs | BEGIN@75 | JSON::Schema::Modern::
1 | 1 | 1 | 5µs | 11µs | BEGIN@158 | JSON::Schema::Modern::
1 | 1 | 1 | 5µs | 16µs | BEGIN@85 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 9µs | BEGIN@106 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 13µs | BEGIN@111 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 12µs | BEGIN@116 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 11µs | BEGIN@140 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 12µs | BEGIN@145 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 14µs | BEGIN@80 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 10µs | BEGIN@90 | JSON::Schema::Modern::
1 | 1 | 1 | 4µs | 9µs | BEGIN@98 | JSON::Schema::Modern::
1 | 1 | 1 | 3µs | 9µs | BEGIN@150 | JSON::Schema::Modern::
1 | 1 | 1 | 3µs | 3µs | BEGIN@27.302 | JSON::Schema::Modern::
1 | 1 | 1 | 3µs | 12µs | BEGIN@55 | JSON::Schema::Modern::
1 | 1 | 1 | 3µs | 14µs | BEGIN@60 | JSON::Schema::Modern::
1 | 1 | 1 | 3µs | 13µs | BEGIN@70 | JSON::Schema::Modern::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | 2 | 1µs | my $isa_check_for_specification_5fversion = ${$_[1]->{"\$isa_check_for_specification_5fversion"}}; | ||
3 | 1 | 0s | my $isa_check_for_output_5fformat = ${$_[1]->{"\$isa_check_for_output_5fformat"}}; | ||
4 | 1 | 1µs | my $isa_check_for__5fvocabulary_5fclasses = ${$_[1]->{"\$isa_check_for__5fvocabulary_5fclasses"}}; | ||
5 | 1 | 0s | my $isa_check_for_validate_5fformats = ${$_[1]->{"\$isa_check_for_validate_5fformats"}}; | ||
6 | 1 | 0s | my $isa_check_for_strict = ${$_[1]->{"\$isa_check_for_strict"}}; | ||
7 | 1 | 1µs | my $isa_check_for__5fencoding = ${$_[1]->{"\$isa_check_for__5fencoding"}}; | ||
8 | 1 | 0s | my $isa_check_for_collect_5fannotations = ${$_[1]->{"\$isa_check_for_collect_5fannotations"}}; | ||
9 | 1 | 0s | my $isa_check_for_scalarref_5fbooleans = ${$_[1]->{"\$isa_check_for_scalarref_5fbooleans"}}; | ||
10 | 1 | 0s | my $isa_check_for__5fmetaschema_5fvocabulary_5fclasses = ${$_[1]->{"\$isa_check_for__5fmetaschema_5fvocabulary_5fclasses"}}; | ||
11 | 1 | 0s | my $isa_check_for__5fresource_5findex = ${$_[1]->{"\$isa_check_for__5fresource_5findex"}}; | ||
12 | 1 | 1µs | my $coerce_for_specification_5fversion = ${$_[1]->{"\$coerce_for_specification_5fversion"}}; | ||
13 | 1 | 0s | my $isa_check_for__5fjson_5fdecoder = ${$_[1]->{"\$isa_check_for__5fjson_5fdecoder"}}; | ||
14 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
15 | 1 | 1µs | my $isa_check_for_validate_5fcontent_5fschemas = ${$_[1]->{"\$isa_check_for_validate_5fcontent_5fschemas"}}; | ||
16 | 1 | 0s | my $isa_check_for__5fformat_5fvalidations = ${$_[1]->{"\$isa_check_for__5fformat_5fvalidations"}}; | ||
17 | 1 | 0s | my $isa_check_for_short_5fcircuit = ${$_[1]->{"\$isa_check_for_short_5fcircuit"}}; | ||
18 | 1 | 1µs | my $isa_check_for__5fmedia_5ftype = ${$_[1]->{"\$isa_check_for__5fmedia_5ftype"}}; | ||
19 | 1 | 0s | my $isa_check_for_max_5ftraversal_5fdepth = ${$_[1]->{"\$isa_check_for_max_5ftraversal_5fdepth"}}; | ||
20 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
21 | package JSON::Schema::Modern; | ||||
22 | 2 | 41µs | 2 | 50µs | # spent 30µs (10+20) within JSON::Schema::Modern::BEGIN@22.301 which was called:
# once (10µs+20µs) by Sub::Quote::_clean_eval at line 22 # spent 30µs making 1 call to JSON::Schema::Modern::BEGIN@22.301
# spent 20µs making 1 call to warnings::unimport |
23 | # spent 15.4ms (31µs+15.4) within JSON::Schema::Modern::new which was called 2 times, avg 7.70ms/call:
# once (12µs+15.3ms) by OpenAPI::Modern::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/OpenAPI/Modern.pm:79] at line 67 of OpenAPI/Modern.pm
# once (19µs+52µs) by OpenAPI::Modern::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/OpenAPI/Modern.pm:79] at line 177 of Sub/Defer.pm | ||||
24 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
25 | # BEGIN quote_sub PRELUDE | ||||
26 | package JSON::Schema::Modern; | ||||
27 | # spent 3µs within JSON::Schema::Modern::BEGIN@27.302 which was called:
# once (3µs+0s) by Sub::Quote::_clean_eval at line 32 | ||||
28 | 1 | 0s | $^H = 2018; | ||
29 | 1 | 1µs | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
30 | 1 | 3µs | %^H = ( | ||
31 | ); | ||||
32 | 1 | 98µs | 1 | 3µs | } # spent 3µs making 1 call to JSON::Schema::Modern::BEGIN@27.302 |
33 | # END quote_sub PRELUDE | ||||
34 | 1 | 1µs | my $invoker = CORE::shift(); | ||
35 | 1 | 0s | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
36 | 1 | 0s | if ($class ne "JSON::Schema::Modern") { | ||
37 | if ($Moo::MAKERS{$class}) { | ||||
38 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
39 | package JSON::Schema::Modern; | ||||
40 | return $invoker->SUPER::new(@_); | ||||
41 | } | ||||
42 | Moo->_constructor_maker_for($class); | ||||
43 | return $invoker->new(@_); | ||||
44 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
45 | return $meta->new_object( | ||||
46 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
47 | : $class->Moo::Object::BUILDARGS(@_) | ||||
48 | ); | ||||
49 | } | ||||
50 | } | ||||
51 | 1 | 2µs | 1 | 46µs | my $args = $class->BUILDARGS(@_); # spent 46µs making 1 call to JSON::Schema::Modern::BUILDARGS |
52 | 1 | 1µs | Carp::croak("BUILDARGS did not return a hashref") unless CORE::ref($args) eq 'HASH'; | ||
53 | 1 | 1µs | my $new = bless({}, $class);; | ||
54 | (exists $args->{"_encoding"} and ($new->{"_encoding"} = scalar do { my $value = $args->{"_encoding"}; | ||||
55 | 2 | 83µs | 2 | 21µs | # spent 12µs (3+9) within JSON::Schema::Modern::BEGIN@55 which was called:
# once (3µs+9µs) by Sub::Quote::_clean_eval at line 55 # spent 12µs making 1 call to JSON::Schema::Modern::BEGIN@55
# spent 9µs making 1 call to warnings::unimport |
56 | $value | ||||
57 | } | ||||
58 | )), | ||||
59 | (exists $args->{"format_validations"} and ($new->{"_format_validations"} = scalar do { my $value = $args->{"format_validations"}; | ||||
60 | 2 | 347µs | 2 | 25µs | # spent 14µs (3+11) within JSON::Schema::Modern::BEGIN@60 which was called:
# once (3µs+11µs) by Sub::Quote::_clean_eval at line 60 # spent 14µs making 1 call to JSON::Schema::Modern::BEGIN@60
# spent 11µs making 1 call to warnings::unimport |
61 | $value | ||||
62 | } | ||||
63 | )), | ||||
64 | (exists $args->{"_json_decoder"} and ($new->{"_json_decoder"} = scalar do { my $value = $args->{"_json_decoder"}; | ||||
65 | 2 | 59µs | 2 | 59µs | # spent 46µs (33+13) within JSON::Schema::Modern::BEGIN@65 which was called:
# once (33µs+13µs) by Sub::Quote::_clean_eval at line 65 # spent 46µs making 1 call to JSON::Schema::Modern::BEGIN@65
# spent 13µs making 1 call to warnings::unimport |
66 | $value | ||||
67 | } | ||||
68 | )), | ||||
69 | (exists $args->{"_media_type"} and ($new->{"_media_type"} = scalar do { my $value = $args->{"_media_type"}; | ||||
70 | 2 | 95µs | 2 | 23µs | # spent 13µs (3+10) within JSON::Schema::Modern::BEGIN@70 which was called:
# once (3µs+10µs) by Sub::Quote::_clean_eval at line 70 # spent 13µs making 1 call to JSON::Schema::Modern::BEGIN@70
# spent 10µs making 1 call to warnings::unimport |
71 | $value | ||||
72 | } | ||||
73 | )), | ||||
74 | (exists $args->{"_metaschema_vocabulary_classes"} and ($new->{"_metaschema_vocabulary_classes"} = scalar do { my $value = $args->{"_metaschema_vocabulary_classes"}; | ||||
75 | 2 | 307µs | 2 | 54µs | # spent 30µs (6+24) within JSON::Schema::Modern::BEGIN@75 which was called:
# once (6µs+24µs) by Sub::Quote::_clean_eval at line 75 # spent 30µs making 1 call to JSON::Schema::Modern::BEGIN@75
# spent 24µs making 1 call to warnings::unimport |
76 | $value | ||||
77 | } | ||||
78 | )), | ||||
79 | (exists $args->{"_resource_index"} and ($new->{"_resource_index"} = scalar do { my $value = $args->{"_resource_index"}; | ||||
80 | 2 | 316µs | 2 | 24µs | # spent 14µs (4+10) within JSON::Schema::Modern::BEGIN@80 which was called:
# once (4µs+10µs) by Sub::Quote::_clean_eval at line 80 # spent 14µs making 1 call to JSON::Schema::Modern::BEGIN@80
# spent 10µs making 1 call to warnings::unimport |
81 | $value | ||||
82 | } | ||||
83 | )), | ||||
84 | (exists $args->{"_vocabulary_classes"} and ($new->{"_vocabulary_classes"} = scalar do { my $value = $args->{"_vocabulary_classes"}; | ||||
85 | 2 | 176µs | 2 | 27µs | # spent 16µs (5+11) within JSON::Schema::Modern::BEGIN@85 which was called:
# once (5µs+11µs) by Sub::Quote::_clean_eval at line 85 # spent 16µs making 1 call to JSON::Schema::Modern::BEGIN@85
# spent 11µs making 1 call to warnings::unimport |
86 | $value | ||||
87 | } | ||||
88 | )), | ||||
89 | (exists $args->{"collect_annotations"} and ($new->{"collect_annotations"} = scalar do { my $value = $args->{"collect_annotations"}; | ||||
90 | 2 | 47µs | 2 | 16µs | # spent 10µs (4+6) within JSON::Schema::Modern::BEGIN@90 which was called:
# once (4µs+6µs) by Sub::Quote::_clean_eval at line 90 # spent 10µs making 1 call to JSON::Schema::Modern::BEGIN@90
# spent 6µs making 1 call to warnings::unimport |
91 | $value | ||||
92 | } | ||||
93 | )), | ||||
94 | ($new->{"max_traversal_depth"} = scalar do { my $value = ( | ||||
95 | exists $args->{"max_traversal_depth"} | ||||
96 | 1 | 0s | ? $args->{"max_traversal_depth"} | ||
97 | : 50); | ||||
98 | 7 | 76µs | 3 | 19µs | # spent 9µs (4+5) within JSON::Schema::Modern::BEGIN@98 which was called:
# once (4µs+5µs) by Sub::Quote::_clean_eval at line 98 # spent 9µs making 1 call to JSON::Schema::Modern::BEGIN@98
# spent 5µs making 1 call to Type::Tiny::CORE:match
# spent 5µs making 1 call to warnings::unimport |
99 | $value | ||||
100 | } | ||||
101 | ), | ||||
102 | ($new->{"output_format"} = scalar do { my $value = ( | ||||
103 | exists $args->{"output_format"} | ||||
104 | 1 | 1µs | ? $args->{"output_format"} | ||
105 | : "basic"); | ||||
106 | 5 | 77µs | 3 | 15µs | # spent 9µs (4+5) within JSON::Schema::Modern::BEGIN@106 which was called:
# once (4µs+5µs) by Sub::Quote::_clean_eval at line 106 # spent 9µs making 1 call to JSON::Schema::Modern::BEGIN@106
# spent 5µs making 1 call to warnings::unimport
# spent 1µs making 1 call to Type::Tiny::CORE:match |
107 | $value | ||||
108 | } | ||||
109 | ), | ||||
110 | (exists $args->{"scalarref_booleans"} and ($new->{"scalarref_booleans"} = scalar do { my $value = $args->{"scalarref_booleans"}; | ||||
111 | 2 | 45µs | 2 | 22µs | # spent 13µs (4+9) within JSON::Schema::Modern::BEGIN@111 which was called:
# once (4µs+9µs) by Sub::Quote::_clean_eval at line 111 # spent 13µs making 1 call to JSON::Schema::Modern::BEGIN@111
# spent 9µs making 1 call to warnings::unimport |
112 | $value | ||||
113 | } | ||||
114 | )), | ||||
115 | (exists $args->{"short_circuit"} and ($new->{"short_circuit"} = scalar do { my $value = $args->{"short_circuit"}; | ||||
116 | 2 | 81µs | 2 | 20µs | # spent 12µs (4+8) within JSON::Schema::Modern::BEGIN@116 which was called:
# once (4µs+8µs) by Sub::Quote::_clean_eval at line 116 # spent 12µs making 1 call to JSON::Schema::Modern::BEGIN@116
# spent 8µs making 1 call to warnings::unimport |
117 | $value | ||||
118 | } | ||||
119 | )), | ||||
120 | (exists $args->{"specification_version"} and ($new->{"specification_version"} = scalar do { my $value = do { | ||||
121 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
122 | init_arg => "specification_version", | ||||
123 | name => "specification_version", | ||||
124 | step => "coercion", | ||||
125 | }; | ||||
126 | (my $_return), | ||||
127 | (my $_error), (my $_old_error = $@); | ||||
128 | (eval { | ||||
129 | ($@ = $_old_error), | ||||
130 | ($_return = | ||||
131 | $coerce_for_specification_5fversion->($args->{"specification_version"})), | ||||
132 | 1 | ||||
133 | } or | ||||
134 | $_error = CORE::ref $@ ? $@ : "coercion for \"specification_version\" failed: ".$@); | ||||
135 | ($@ = $_old_error), | ||||
136 | (defined $_error and CORE::die $_error); | ||||
137 | $_return; | ||||
138 | } | ||||
139 | ; | ||||
140 | 2 | 62µs | 2 | 18µs | # spent 11µs (4+7) within JSON::Schema::Modern::BEGIN@140 which was called:
# once (4µs+7µs) by Sub::Quote::_clean_eval at line 140 # spent 11µs making 1 call to JSON::Schema::Modern::BEGIN@140
# spent 7µs making 1 call to warnings::unimport |
141 | $value | ||||
142 | } | ||||
143 | )), | ||||
144 | (exists $args->{"strict"} and ($new->{"strict"} = scalar do { my $value = $args->{"strict"}; | ||||
145 | 2 | 41µs | 2 | 20µs | # spent 12µs (4+8) within JSON::Schema::Modern::BEGIN@145 which was called:
# once (4µs+8µs) by Sub::Quote::_clean_eval at line 145 # spent 12µs making 1 call to JSON::Schema::Modern::BEGIN@145
# spent 8µs making 1 call to warnings::unimport |
146 | $value | ||||
147 | } | ||||
148 | )), | ||||
149 | (exists $args->{"validate_content_schemas"} and ($new->{"validate_content_schemas"} = scalar do { my $value = $args->{"validate_content_schemas"}; | ||||
150 | 2 | 45µs | 2 | 15µs | # spent 9µs (3+6) within JSON::Schema::Modern::BEGIN@150 which was called:
# once (3µs+6µs) by Sub::Quote::_clean_eval at line 150 # spent 9µs making 1 call to JSON::Schema::Modern::BEGIN@150
# spent 6µs making 1 call to warnings::unimport |
151 | $value | ||||
152 | } | ||||
153 | )), | ||||
154 | 1 | 8µs | ($new->{"validate_formats"} = scalar do { my $value = ( | ||
155 | exists $args->{"validate_formats"} | ||||
156 | 1 | 0s | ? $args->{"validate_formats"} | ||
157 | : 0); | ||||
158 | 5 | 241µs | 2 | 17µs | # spent 11µs (5+6) within JSON::Schema::Modern::BEGIN@158 which was called:
# once (5µs+6µs) by Sub::Quote::_clean_eval at line 158 # spent 11µs making 1 call to JSON::Schema::Modern::BEGIN@158
# spent 6µs making 1 call to warnings::unimport |
159 | $value | ||||
160 | } | ||||
161 | ), | ||||
162 | return $new; | ||||
163 | } | ||||
164 | 1 | 2µs | $$_UNQUOTED = \&new; | ||
165 | } | ||||
166 | 1 | 9µs | 1; | ||
167 | |||||
168 | ; |